#include<stdio.h>
#include<time.h>
#include<math.h>
#include<iostream>
using namespace std;

int weight=60,height=50;
int x=0,y=0,t=0,nt=0,pt=0;
char bj='*',act='*',pd='*';
int pds[50][60];

void* show(){
	for(int i=0;i<=height-1;i++){
		//if(i==0||i==height-1){
			for(int l=0;l<weight;l++){
				//printf("%c",bj);
				pds[l][0]=3;
				pds[l][height-1]=3;
				pds[0][i]=3;
			}
		//}
		
		//else{
			for(int l=0; l<=weight-1;l++){
				if(pds[l][i]==0) printf("%c",' ');
				else if(pds[l][i]==1) printf("%c",pd);
				else if(pds[l][i]==2) printf("%c",act);
				else if(pds[l][i]==3) printf("%c",bj);
				else if(l==2301) break;
			}
		//}
		printf("\n");
	}
}

void* createPd(){
	int i=0;
	i=clock();
	while(i>weight) i=i/10;
	pds[i][1]=1;
}

void* resfPd(){
	for(int i=weight-1;i>=0;i--){
		for(int l=height-1;l>=0;l--){
			if(pds[i][l]==1){
				if(l!=height-1) pds[i][l+1]=1;
				pds[i][l]=0;
			}
		}
	}
}

int main(){
	
	/*pds[0][0]=3;
	
	for (int i = 0; i < 5; i++ )
   {
      for (int j = 0; j < 2; j++ )
      {
         printf("a[%d][%d] = %d\n", i,j, pds[i][j] );
      }
   }*/
 
	show();
	return 0;
}


